﻿@model IEnumerable<Liekhus.TimeTracker.Module.CoveyRole>

@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Index</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table>
    <tr>
        <th></th>
        <th>
            Code
        </th>
        <th>
            Name
        </th>
        <th>
            CreatedOn
        </th>
        <th>
            ModifiedOn
        </th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.ActionLink("Edit", "Edit", new { item.Oid }) |
            @Html.ActionLink("Details", "Details", new { item.Oid }) |
            @Html.ActionLink("Delete", "Delete", new { item.Oid })
        </td>
        <td>
            @item.Code
        </td>
        <td>
            @item.Name
        </td>
        <td>
            @String.Format("{0:g}", item.CreatedOn)
        </td>
        <td>
            @String.Format("{0:g}", item.ModifiedOn)
        </td>
    </tr>
}

</table>

